package com.example.avue.service.impl;

import com.example.avue.entity.Visual;
import com.example.avue.mapper.VisualMapper;
import com.example.avue.service.VisualService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VisualServiceImpl implements VisualService {
    @Autowired
    VisualMapper visualMapper;
    @Override
    public List<Visual> getList() {
        return visualMapper.getVisualList();
    }

    @Override
    public Visual getDetail(Long id) {
        return visualMapper.getVisualDetail(id);
    }
}
